<template>
    <div id="container" style="width: 100%;min-height: 200px;flex: 1;height: 100%"></div>
</template>
<script setup>
import {ref, onMounted} from 'vue' // vue相关方法
onMounted(() => {
    initMap();
})
function initMap() {
    var myLatlng = new qq.maps.LatLng(39.90923, 116.397428)
    var myOptions = {
        zoom: 8,
        center: myLatlng,
        mapTypeId: qq.maps.MapTypeId.ROADMAP
    }
    var map = new qq.maps.Map(document.getElementById("container"), myOptions);
}
</script>
<style scoped>
</style>
